package com.example.demo_1106.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName rider_info
 */
@TableName(value ="rider_info")
@Data
public class RiderInfo implements Serializable {
    /**
     * 
     */
    private String riderCode;

    /**
     * 
     */
    private String riderName;

    /**
     * 
     */
    private String riderPwd;

    /**
     * 
     */
    private String riderPhone;

    /**
     * 
     */
    private Integer isQualified;

    /**
     * 
     */
    private String riderAuthCode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RiderInfo other = (RiderInfo) that;
        return (this.getRiderCode() == null ? other.getRiderCode() == null : this.getRiderCode().equals(other.getRiderCode()))
            && (this.getRiderName() == null ? other.getRiderName() == null : this.getRiderName().equals(other.getRiderName()))
            && (this.getRiderPwd() == null ? other.getRiderPwd() == null : this.getRiderPwd().equals(other.getRiderPwd()))
            && (this.getRiderPhone() == null ? other.getRiderPhone() == null : this.getRiderPhone().equals(other.getRiderPhone()))
            && (this.getIsQualified() == null ? other.getIsQualified() == null : this.getIsQualified().equals(other.getIsQualified()))
            && (this.getRiderAuthCode() == null ? other.getRiderAuthCode() == null : this.getRiderAuthCode().equals(other.getRiderAuthCode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRiderCode() == null) ? 0 : getRiderCode().hashCode());
        result = prime * result + ((getRiderName() == null) ? 0 : getRiderName().hashCode());
        result = prime * result + ((getRiderPwd() == null) ? 0 : getRiderPwd().hashCode());
        result = prime * result + ((getRiderPhone() == null) ? 0 : getRiderPhone().hashCode());
        result = prime * result + ((getIsQualified() == null) ? 0 : getIsQualified().hashCode());
        result = prime * result + ((getRiderAuthCode() == null) ? 0 : getRiderAuthCode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", riderCode=").append(riderCode);
        sb.append(", riderName=").append(riderName);
        sb.append(", riderPwd=").append(riderPwd);
        sb.append(", riderPhone=").append(riderPhone);
        sb.append(", isQualified=").append(isQualified);
        sb.append(", riderAuthCode=").append(riderAuthCode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}